package com.chenyue.cm.user.client;


import com.chenyue.cm.bean.Success;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述: author: Tsion date: 2020-02-24
 */

public interface MallGoodsServiceClient {

    /**
     * 获取spu详情
     * @param spuId
     * @return
     */
    @RequestMapping(value = "/goodsApi/getSpuDetailById", method = RequestMethod.GET)
    public Success getSpuDetailById(@RequestParam("spuId") String spuId);


    /**
     * 获取sku详情
     * @param skuId
     * @return
     */
    @RequestMapping(value = "/goodsApi/getSkuDetailById", method = RequestMethod.GET)
    public Success getSkuDetailById(@RequestParam("skuId") String skuId);


    /**
     * 校验库存信息
     * @param skuItemListString
     * @return
     */
    @RequestMapping(value = "/goodsApi/verifyStockInfo", method = RequestMethod.GET)
    public Success verifyStockInfo(@RequestParam("skuItemListString") String skuItemListString);


    /**
     * 更新库存信息
     * @param skuItemListString
     * @return
     */
    @RequestMapping(value = "/goodsApi/changeStockInfo", method = RequestMethod.GET)
    public Success changeStockInfo(@RequestParam("skuItemListString") String skuItemListString);




}
